<div class="head_bar">
    <div class="head">
        <div class="logo f_l">
            <a href="/"><img src="<?php echo image_url('logo.png'); ?>"></a>
        </div>
        <div class="search f_r">
            <a href="javascript:;" id="sub"><img src="<?php echo image_url('search.png'); ?>"></a>
            <span>
            	<input placeholder="搜索" value="<?php echo $keyword ?? ""?>" id="search">
            </span>
        </div>
    </div>
    <div class="menu">
        <a href="/politics.html" <?php if ($cur_fun == "politics"){ ?>class="on" <?php } ?> >政法要闻</a>
        <a href="/safe.html" <?php if ($cur_fun == "safe"){ ?>class="on" <?php } ?> >平安广州</a>
        <a href="/rule.html" <?php if ($cur_fun == "rule"){ ?>class="on" <?php } ?> >法治广州</a>
        <a href="/shared.html" <?php if ($cur_fun == "shared"){ ?>class="on" <?php } ?> >共建共治共享</a>
        <a href="/team.html" <?php if ($cur_fun == "team"){ ?>class="on" <?php } ?> >队伍建设</a>
        <a href="/service.html" <?php if ($cur_fun == "service"){ ?>class="on" <?php } ?> >法律服务</a>
        <a href="/information.html" <?php if ($cur_fun == "information"){ ?>class="on" <?php } ?> >信息公开</a>
    </div>
</div>
<script>
    $(function () {
        $("#sub").click(function () {
            var key = $("#search").val();
            window.location.href = "search?key=" + key;
        });
    });
</script>